import { WeaTools } from 'ecCom'

export const getRequestParams = params => {
	return WeaTools.callApi('/api/meeting/base/getRequestParams', 'POST', params);
}
export const getPreview = params => {
	return WeaTools.callApi('/api/meeting/field/getViewMeetingFieldMobx', 'POST', params);
}
export const changeBroserMeetingType = params => {
	return WeaTools.callApi('/api/meeting/field/changeMeetingType', 'POST', params);
}

export const getMeetingServiceField = params => {
	return WeaTools.callApi('/api/meeting/field/getMeetingServiceField', 'POST', params);
}
export const getMeetingBaseField = params => {
	return WeaTools.callApi('/api/meeting/field/getMeetingBaseFieldMobx', 'POST', params);
}
export const getMeetingTopicField = params => {
	return WeaTools.callApi('/api/meeting/field/getMeetingTopicField', 'POST', params);
}
export const exportExcel = (dataKey) => {
	return WeaTools.callApi('/api/ec/dev/table/export', 'POST', {dataKey: dataKey})
}

export const delSign = params => {
	return WeaTools.callApi('/api/meeting/sign/delSign', 'POST', params);
}

export const getSignList = params => {
	return WeaTools.callApi('/api/meeting/sign/getSignList', 'POST', params);
}

export const signMeetingByHandOne = params => {
	return WeaTools.callApi('/api/meeting/sign/signMeetingByHandOne', 'POST', params);
}
export const signMeetingByHand = params => {
	return WeaTools.callApi('/api/meeting/sign/signMeetingByHand', 'POST', params);
}

export const getReceiptTable = params => {
	return WeaTools.callApi('/api/meeting/field/getMemberReceipt', 'POST', params);
}

export const getMemberListPageTree = params => {
	return WeaTools.callApi('/api/meeting/field/getMemberListPageTree', 'POST', params);
}

/*议程资料删除*/
export const deltopicdoc = (params) => WeaTools.callApi('/api/meeting/detail/deltopicdoc', 'POST', params);
/*议程资料保存*/
export const addtopicdoc = (params) => WeaTools.callApi('/api/meeting/detail/addtopicdoc', 'POST', params);
/*保存回执备注*/
export const saveRemark = (params) => WeaTools.callApi('/api/meeting/member/saveRemark', 'POST', params);
/*参会人员回执*/
export const meetingReHrm = (params) => WeaTools.callApi('/api/meeting/member/meetingReHrm', 'POST', params);
/*参会客户回执*/
export const meetingReCrm = (params) => WeaTools.callApi('/api/meeting/member/meetingReCrm', 'POST', params);
/*显示回执详情*/
export const showDetailData = (params) => WeaTools.callApi('/api/meeting/member/showDetailData', 'POST', params);
/*获得时间安排数据*/
export const getTopicDate = (params) => WeaTools.callApi('/api/meeting/detail/gettopicdate','POST', params);
/*保存时间安排数据*/
export const saveTopicDate = (params) => WeaTools.callApi('/api/meeting/detail/savetopicdate','POST', params);
/*保存时间安排数据*/
export const saveTopicTidy = (params) => WeaTools.callApi('/api/meeting/detail/saveTopicTidy','POST', params);

export const exchangeDelete = params => {
	return WeaTools.callApi('/api/meeting/exchange/delete', 'POST', params);
}

export const getExchangeList = params => {
	return WeaTools.callApi('/api/meeting/exchange/getExchangeList', 'POST', params);
}

export const exchangeSave = params => {
	return WeaTools.callApi('/api/meeting/exchange/save', 'POST', params);
}

export const getDecisionData = params => {
	return WeaTools.callApi('/api/meeting/decision/getDecisionData', 'POST', params);
}

export const decisionSave = params => {
	return WeaTools.callApi('/api/meeting/decision/edit', 'POST', params);
}

export const decisionSubmit = params => {
	return WeaTools.callApi('/api/meeting/decision/submit', 'POST', params);
}

export const StopIntvl = params => {
	return WeaTools.callApi('/api/meeting/repeat/stop', 'post', params);
}

export const cancelIntvl = params => {
	return WeaTools.callApi('/api/meeting/repeat/cancel', 'POST', params);
}

export const onStopIntvl = params => {
	return WeaTools.callApi('/api/meeting/repeat/stop', 'POST', params);
}
export const overMeeting = params => {
	return WeaTools.callApi('/api/meeting/base/overMeeting', 'POST', params);
}
export const copy = params => {
	return WeaTools.callApi('/api/meeting/base/copyMeeting', 'POST', params);
}

export const cancelMeeting = params => {
	return WeaTools.callApi('/api/meeting/base/cancelMeeting', 'POST', params);
}

export const doSubmit = params => {
	return WeaTools.callApi('/api/meeting/base/doSubmit', 'POST', params);
}

export const doSubmit2 = params => {
	return WeaTools.callApi('/api/meeting/base/doSubmit', 'POST', params);
}
export const doReject = params => {
	return WeaTools.callApi('/api/meeting/base/doReject', 'post', params);
}
export const reSubmit = params => {
	return WeaTools.callApi('/api/meeting/base/reSubmit', 'POST', params);
}

export const doDelete = params => {
	return WeaTools.callApi('/api/meeting/base/deleteMeeting', 'POST', params);
}

export const chkMeeting = params => {
	return WeaTools.callApi('/api/meeting/base/chkMeeting', 'POST', params);
}

export const customMeetingChk = params => {
	return WeaTools.callApi('/api/meeting/base/customMeetingChk', 'POST', params);
}

export const newMeeting = params => {
	return WeaTools.callApi('/api/meeting/base/newMeeting', 'POST', params);
}

export const editMeeting = params => {
	return WeaTools.callApi('/api/meeting/base/editMeeting', 'POST', params);
}
export const changemeeting = params => {
	return WeaTools.callApi('/api/meeting/base/changeMeeting', 'POST', params);
}

export const reSubmit2 = params => {
	return WeaTools.callApi('/api/meeting/base/submitMeeting', 'POST', params);
}

export const saveScreenSet = params => {
	return WeaTools.callApi('/api/meeting/sign/saveScreenSet', 'post', params);//保存设置
}

export const getScreenSet = params => {
	return WeaTools.callApi('/api/meeting/sign/getScreenSet', 'post', params);//获取设置
}

export const getScreenSignData = params => {
	return WeaTools.callApi('/api/meeting/sign/getScreenSignData', 'post', params);//获取大屏数据
}

export const downLoadQrCode = params => {
	return WeaTools.downloadFile('/api/meeting/sign/downLoadQrCode', 'post', params );//二维码下载
}

export const getQrCode = params => {
	return WeaTools.callApi('/api/meeting/sign/getQrCode', 'post', params );//二维码下载
}

//根据选择服务项目取得对应的负责人
export const getServeProHrmIds = params => {
  return WeaTools.callApi('/api/meeting/servepro/getServeProHrmIds', 'post', params );
}

export const exportMeetMemberExcel = (params) => {
	return WeaTools.callApi('/api/meeting/base/exportExcel', 'POST', params);
}

export const saveSystemPageViewLog = (params) => {
	return WeaTools.callApi('/api/systemViewLog/home/InsertSystemPageViewLog', 'POST', params);
}

// 获取会议签到，签退统计人数
export const getSignInfoCount = (params) => {
	return WeaTools.callApi('/api/meeting/sign/getSignInfoCount', 'POST', params);
}
// 获取会议签到，签退列表详情
export const getSignInfo = (params) => {
	return WeaTools.callApi('/api/meeting/sign/getSignInfo', 'POST', params);
}
// 获取会议签到，签退高级搜索
export const getSignInfoSearchCondition = (params) => {
	return WeaTools.callApi('/api/meeting/sign/getSignInfoSearchCondition', 'POST', params);
}
// 会议签到，签退搜索
export const onSearch = (params) => {
	return WeaTools.callApi('/api/meeting/sign/getSignInfoSearchCondition', 'POST', params);
}
// 更改签退时间-form
export const getDefaultSignBackTime = (params) => {
	return WeaTools.callApi('/api/meeting/sign/getDefaultSignBackTime', 'POST', params);
}
// 保存更改签退时间设置
export const saveDefaultSignBackTime = (params) => {
	return WeaTools.callApi('/api/meeting/sign/saveDefaultSignBackTime', 'POST', params);
}
// 补录签退时间
export const signBackMeetingByHandOne = (params) => {
	return WeaTools.callApi('/api/meeting/sign/signBackMeetingByHandOne', 'POST', params);
}
// 获取新建，查看tab标签显隐
export const getMeetingTabElement = (params) => {
	return WeaTools.callApi('/api/meeting/base/getMeetingTabElement', 'POST', params);
}

// 获取签到信息
export const getSignInfoSite = (params) => {
	return WeaTools.callApi('/api/meeting/sign/getSignInfoSite', 'POST', params);
}

export const chkRepeatMeeting = params => {
	return WeaTools.callApi('/api/meeting/base/chkRepeatMeeting', 'POST', params);
}

export const meetingToGovern = params => {
	return WeaTools.callApi('/api/meeting/base/meetingToGovern', 'POST', params);
}

export const meetingDecisionToGovern = params => {
	return WeaTools.callApi('/api/meeting/base/meetingDecisionToGovern', 'POST', params);
}

export const getCategoryConditions = params => {
	return WeaTools.callApi('/api/meeting/base/getCategoryConditions', 'POST', params);
}